﻿@{
    ViewBag.Title = "DocList";
    Layout = null;
    string docClsName = ViewData["docClsName"] == null ? "最新信息" : ViewData["docClsName"].ToString();
    string navi = ViewData["navi"] == null ? "当前位置：首页 > 最新信息" : ViewData["navi"].ToString();
}
@using ElingOA6_DSJCJ.Models;
@using Webdiyer.WebControls.Mvc
@model PagedList<ElingOA6_DSJCJ.Models.DocumentGridModel>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ElingOA6_DSJCJ.Common.GlobalConstant.CONSTRING_SYSTITLE</title>
    <link href="@Url.Content("~/Content/framepage.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>

    <style type="text/css">
    .paging-left .paging-left-content li { background:url(@Url.Content("~/Content/images/paging01.jpg")) no-repeat; }
    </style>
   

    <script>

        function iframeAutoFit() {
            var ex;
            try {
                if (window != parent) {
                    var a = parent.document.getElementsByTagName("IFRAME");
                    for (var i = 0; i < a.length; i++) {
                        if (a[i].contentWindow == window) {
                            var h1 = 0, h2 = 0;
                            if (document.documentElement && document.documentElement.scrollHeight) {
                                h1 = document.documentElement.scrollHeight;
                            }
                            if (document.body) h2 = document.body.scrollHeight;
                            var h = Math.max(h1, h2);
                            if (window.ActiveXObject) { h += 4; }
                            else { h += 4; }
                            a[i].style.height = h + "px";
                            window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                        }
                    }
                }
            }
            catch (ex) { }
        }
    
    </script>

</head>
<body onload="iframeAutoFit()">
<div class="list_content">
    	<div class="lc_t"><h3> @ViewData["docClsName"]</h3><span><a href="#">首页</a> &gt; <a href="#">@ViewData["docClsName"]</a></span></div>
        <ul class="lc_c">
         @foreach (DocumentGridModel documentModel in Model as List<DocumentGridModel>)
                        {
                            <li><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a><span class="sr">@documentModel.FPubDate.ToString("yyyy-MM-dd")</span></li>
                        }

                         </ul>
                         <div class="clear"></div>
                   <div class="manu">   <table width="100%" cellspacing="0" cellpadding="0" height="35">
                        <tr>
                            <td style=" padding:0 2px 0 2px;">
                               
                                
                                <span style="float:left; display:block;">
                                @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页" }, new { style = "" })
                                </span>
                                <br />
                                 <span style="float: right; display:block;">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>
                            </td>
                        </tr>
                    </table>
                  </div>
                  </div>
   
    
    
</body>
</html>
